<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>WinCache Session Handler</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="wincache.stats.html">WinCache Statistics Script</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="wincache.reroutes.html">WinCache Functions Reroutes</a></div>
 <div class="up"><a href="wincache.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="wincache.sessionhandler" class="section">
  <h2 class="title">WinCache Session Handler</h2>
  <p class="para">
   The WinCache session handler (available since WinCache 1.1.0) can be used to configure PHP to store the session data in shared memory session cache. 
   Using shared memory instead of the default file session storage helps improve performance of PHP applications 
   that store large amount of data in session objects. Wincache session cache uses file-backed shared memory, which ensures 
   that the session data is not lost during recycling of IIS application pools.
  </p>
  <p class="para">
   To configure PHP to use WinCache session handler set the <var class="filename">php.ini</var> setting 
   <a href="session.configuration.html#ini.session.save-handler" class="link">session.save_handler</a> to <em class="emphasis">wincache</em>. 
   By default the Windows temporary file location is used for storing the 
   session data. To change the location of the session file use 
   <a href="session.configuration.html#ini.session.save-path" class="link">session.save_path</a> directive.
   <div class="example" id="example-530">
    <p><strong>Example #1 Enabling WinCache session handler</strong></p>
    <div class="example-contents">
<div class="php.inicode"><pre class="php.inicode">session.save_handler = wincache
session.save_path = C:\inetpub\temp\session\</pre>
</div>
    </div>

   </div>
  </p>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="wincache.stats.html">WinCache Statistics Script</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="wincache.reroutes.html">WinCache Functions Reroutes</a></div>
 <div class="up"><a href="wincache.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
